<!DOCTYPE html>

<html>
  <head>
    <title>校园二手交易平台</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>
    <%= action_cable_meta_tag %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    
    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
    <%# <%= javascript_include_tag 'application', 'data-turbolinks-track': true %>
    
  </head>

  <body>
  <%if false%>
  <% flash.each do |type, msg| %>
  <div>
    <%= msg  %>
  </div>
  <%end%>

<% end %>

<% if notice %>
  <p class="alert alert-success"><%= notice %></p>
<% end %>
<% if alert %>
  <p class="alert alert-danger"><%= alert %></p>
<% end %>

<%= render "shared/head" %>
    <div class="main">
    <%= yield %>
    </div>
  </body>
</html>
